//
//  ProductAuctionerViewCell.m
//  MyNewProject
//
//  Created by ZhangYuan on 2019/1/28.
//  Copyright © 2019年 sun. All rights reserved.
//

#import "ProductAuctionerViewCell.h"

@implementation ProductAuctionerViewCell
- (nonnull instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(nullable NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self addSubview:self.auctionTip];
        
        redView = [[UIView alloc]initWithFrame:CGRectMake((SCREEN_WIDTH - 300)/2.0, 80, 300, 100)];
        redView.backgroundColor = [UIColor whiteColor];
        redView.layer.cornerRadius = 5;
        redView.clipsToBounds = YES;
        redView.layer.borderColor = [UIColor redColor].CGColor;
        redView.layer.borderWidth = 1.0;
        [self addSubview:redView];
        
        [self addSubview:self.auctionerHeadImg];
        [self addSubview:self.auctionerName];
        [self addSubview:self.auctionPrice];
        [self addSubview:self.auctionStatus];
        [self addSubview:self.auctionStatusImage];
    }
    return self;
}
-(UILabel *)auctionTip{
    if (!_auctionTip) {
        _auctionTip = [[UILabel alloc]initWithFrame:CGRectMake((SCREEN_WIDTH - 100)/2.0, 20, 100, 30)];
        _auctionTip.backgroundColor = [UIColor redColor];
        _auctionTip.textColor = [UIColor whiteColor];
        _auctionTip.textAlignment = NSTextAlignmentCenter;
        _auctionTip.text = @"竞拍成功";
        _auctionTip.font = [UIFont systemFontOfSize:14];
    }
    return _auctionTip;
}
@end
